<?php
/**
 *  获取通讯身份  
 * @see  get_code.php
 * @version	1.0.0 (Tue Dec 27 11:31:42 CST 2011)
 * @author	sanshi
 */
include_once("the_page.class.php");
$icpcode = isset($_GET['icpcode']) ? trim($_GET['icpcode']) : "";
$un_id = isset($_GET['un_id']) ? trim($_GET['un_id']) : "";
$icpinfo = get_icpcode_info($icpcode);
$icp_key = $icpinfo['key'];
$temp = "";
if(is_array($icpinfo) && !empty($un_id) && !empty($icp_key))
{
	$id5_mcrypt = Factory::getItemClass("id5_mcrypt");
	$id5_mcrypt->set_key($icp_key);
	$temp = $id5_mcrypt->id5_encrypt($icpcode,$un_id);
	//调试解码
	//print_r($id5_mcrypt->id5_decrypt($temp));
}
echo $temp;
?>